package com.poc.okta;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@SpringBootApplication
public class OkataPocApplication {

    public static void main(String[] args) {
        SpringApplication.run(OkataPocApplication.class, args);
    }

    /*@Configuration
    static class OktaOAuth2WebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {
        @Override
        protected void configure(HttpSecurity http) throws Exception {
            http
                    .authorizeRequests().anyRequest().authenticated()
                    .and().oauth2Client().and()
                    .oauth2Login()*//*.and()
                .oauth2ResourceServer().jwt()*//*;
        }
    }*/
}
